<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
  <head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2008. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta http-equiv="Content-Style-Type" content="text/css">
    <title>
      Classpath Variables Preferences
    </title>
    <link rel="stylesheet" href="../../../../book.css" charset="ISO-8859-1" type="text/css">
    <script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js" type="text/javascript"> </script>
  </head>
  <body>
    <h1>
      Classpath Variables Preferences
    </h1>
    <h2 class="Head">
      Configurable variables
    </h2>
    <p>
      Classpath variables can be used in a Java Build Path to avoid a reference to the local file system. Using a variable entry, the classpath only contains a variable and the
      build path can be shared in a team.
      The value of such variables is configured on the
      <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.jdt.ui.preferences.ClasspathVariablesPreferencePage)")'><img src="PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt="Opens the Classpath Variables preference page">
      <b>Java &gt; Build Path &gt; Classpath Variables</b></a> preference page.
    </p>
    <table border="1" cellspacing="0" cellpadding="5" width="100%" summary="Classpath variables">
      <caption>
        &nbsp;<br>
      </caption>
      <tr>
        <th>
          <p>
            Command
          </p>
        </th>
        <th>
          <p>
            Description
          </p>
        </th>
      </tr>
      <tr>
        <td valign="top">
          <p>
            <strong>New...</strong>
          </p>
        </td>
        <td valign="top">
          <p>
            Adds a new variable entry. In the resulting dialog, specify a name and path for the new variable. You can click the&nbsp;<strong>File</strong>
            or&nbsp;<strong>Folder</strong> buttons to browse for a path.&nbsp;
          </p>
        </td>
      </tr>
      <tr>
        <td valign="top">
          <p>
            <strong>Edit...</strong>
          </p>
        </td>
        <td valign="top">
          <p>
            Allows you to edit the selected variable entry. In the resulting dialog, edit the name and/or path for the variable. You can click the&nbsp;<strong>File</strong>
            or&nbsp;<strong>Folder</strong> buttons to browse for a path.&nbsp;
          </p>
        </td>
      </tr>
      <tr>
        <td valign="top">
          <p>
            <strong>Remove</strong>
          </p>
        </td>
        <td valign="top">
          <p>
            Removes the selected variable entry.&nbsp;
          </p>
        </td>
      </tr>
    </table>
    <h2 class="Head">
      Reserved class path variables
    </h2>
    <p>
      Certain class path variables are set internally and can not be changed in the Classpath variables preferences:
    </p>
    <ul>
      <li>
        JRE_LIB: The archive with the runtime JAR file for the currently used JRE.
      </li>
      <li>
        JRE_SRC: The source archive for the currently used JRE.
      </li>
      <li>
        JRE_SRCROOT: The root path in the source archive for the currently used JRE.
      </li>
    </ul>
    <p>
      These variables are deprecated and should not be used anymore. Instead <a href="../../../ref-properties-build-path.htm">use a JRE System Library</a>.
    </p>
    <h3 class="related">Related concepts</h3>
      <a href="../../../../concepts/concept-classpath-variables.htm">Classpath variables</a>
    <h3 class="related">Related references</h3>
      <a href="../../../preferences/java/ref-preferences-installed-jres.htm">Installed JREs</a>
  </body>
</html>

